package test27;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-04-19
 * Time: 11:04
 */
import java.util.*;
class Solution {
    public int Add(int num1,int num2) {
        int add = num1;
        int sum = num2;
        while (add != 0) {
            int temp = add ^ sum;
            add = (add & sum) << 1;
            sum = temp;
        }
        return sum;
    }
}
